package com.atjava.nebula.frames.auth.service;

import java.util.List;

import com.atjava.nebula.frames.resources.SysResource;
import com.atjava.nebula.frames.role.SysRole;

public interface AuthService {
	
	
	/**
	 * Get all resources by role id
	 * 
	 * @param roleId
	 * @return List<SysResource> 
	 */
	public List<SysResource> getResourcesByRole(Short roleId);
	
	/**
	 * Get all resources by role ids
	 * 
	 * @param roleId
	 * @return List<SysResource> 
	 */
	public List<SysResource> getResourcesByRoles(List<Short> roleIds);

	
	/**
	 * Get all roles.
	 * 
	 * @return List<SysRole>
	 */
	public List<SysRole> getAllRoles();
	
	/**
	 * Get assigned user roles.
	 * 
	 * @return List<SysRole>
	 */
	public List<SysRole> getRolesByUser(String userId);
}
